import { request } from '@/utils/request'

let url = 'http://localhost:5177'

const authApi = {
  login: (data) => request('post', `${url}/api/auth/login`, data),

  register: (data) => request('post', `${url}/api/auth/register`, {
    Username: data.username,
    Password: data.password,
    Email: data.email,
    Phone: data.phone
  })

};

export default authApi;